import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig(
    {
        plugins: [vue()],

        server: {
            proxy: {
                // 发送请求的请求前缀
                "/api": {
                    target: "http://39.98.123.211:8510/api/",
                    changeOrigin: true,
                    rewrite: path => path.replace(/^\/api/, "")
                }
            }
        }
    }
)
